home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / NEWTEXTF / SOURCE_C / HANDLETO.C1 < prev    next >
Text File  |  1990-09-10  |  274b  |  12 lines

  1. #include "MyLibrary.h"
  2.  
  3. unsigned char    *HandleToStr255 (Handle hndl, Str255 pstr)
  4.  
  5.             {if (hndl == (Handle) 0 || !(GetHandleSize (hndl)))
  6.                 {*pstr = 0;
  7.                 return (pstr);}
  8.             MoveHHi (hndl);
  9.             HLock (hndl);
  10.             CToStr255 (*hndl, pstr);
  11.             HUnlock (hndl);
  12.             return (pstr);}